package top.kaoshanji.p1ch09b;

/**
 * 代码清单-p1ch09b-200页b：形状的示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/9 18:39
 */
public class Shapes {

    public static void main(String[] args) {
        RandomShapes gen = new RandomShapes();
        // 执行多态方法调用
        for (Shape shape: gen.array(9)) {
            shape.draw();
        }

    }

}
